//ex5_3.cpp
#include <iostream>

int main(void)
{
    using namespace std;
    int sum1 = 0;
    int num;
    do{
        cout << "Enter a integer: (enter 0 to quit:) ";
        cin >> num;
        sum1 += num;
        cout << "Now sum = " << sum1 << endl;
    } while (num != 0);
}
